// ActionScript file
import com.nstar.jianli.components.Toast;
import com.nstar.jianli.controller.WeiboController;
import com.sina.microblog.events.MicroBlogEvent;

import flash.events.Event;

public static const LOOK_AROUND:String = "lookAround";

private var _controller:WeiboController;

//登录
private function loginHandler():void{
	if(_controller){
		_controller.getMicroBlog().login();
	}else{
		Toast.show("微博控制器还没有初始化~");
	}
	
}

//随便看看别人的
private function lookAroundHandler():void{
	this.dispatchEvent(new Event(LOOK_AROUND));
}

public function get controller():WeiboController{
	return this._controller;
}

public function set controller(value:WeiboController):void{
	this._controller = value;
}

